package org.steven0lisa.typhoon.bean;

import com.baidu.platform.comapi.basestruct.GeoPoint;

public class TyphoonStatus {

	public String id; 
    public String typhoon_id; 
    public String en_name; 
    public String cn_name; 
    public String unique; 
    public String current_time; 
    public String seven_ring; 
    public String ten_ring;
    public String forecast; 
    public String sys_time;
    public TyphoonLocation current;
    
    public GeoPoint getPoint(){
    	double dim = Double.parseDouble(current.dim);
		double lon = Double.parseDouble(current.lon);
		GeoPoint point = new GeoPoint((int) (lon * 1E6), (int) (dim * 1E6));
		return point;
    }
}
